#include "element.hh"

Element::Element() {
  x_ = 0;
  y_ = 0;
  img_src_ = "";
}

Element::~Element() {
}

std::string Element::getName() {
  return name_;
}

std::string Element::getImgSrc() {
  return img_src_;
}

int Element::getX() {
  return x_;
}

int Element::getY() {
  return y_;
}

int Element::getWidth() {
  return width_;
}

int Element::getHeight() {
  return height_;
}

ActionDispatcher Element::getActionDispatcher() {
  return actionDispatcher_;
}

void Element::setX(const int x) {
  x_ = x;
}

void Element::setY(const int y) {
  y_ = y;
}

void Element::setName(const std::string str) {
  name_ = str;
}

void Element::setWidth(const int w) {
  width_ = w;
}

void Element::setHeight(const int h) {
  height_ = h;
}

void Element::setImgSrc(const std::string str) {
  img_src_ = str;
}

void Element::addAction(std::string actionName, int textEventId) {
  actionDispatcher_.addAction(actionName, textEventId);
}
